package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckItem;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface CheckItemService {

    //新增检查项
    public Integer insertCheckItem(@RequestBody CheckItem checkItem);

    //根据id删除检查项
    public Integer deleteCheckItem(@RequestBody Integer id);

    /**
     * 查询所有
     * @author cc
     * @param queryPageBean
     * @return
     */
    public PageResult findByAll(QueryPageBean queryPageBean);

    /**
     * 查询检查组中的检查项
     * @return
     */
    public List<CheckItem> findAll();
}
